/**
* author: zhanghuan
* created: 2020/07/17
* describe: 
*/
import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import Example from '../pages/example/example';
import Form from '../pages/example/form';
import Chart from '../pages/example/chart';
import Index from '../pages/index';


const RouterIndex: React.FC = () => {
    return (
        <Router>
            <Switch>
                <Route path="/chart" component={Chart} />
                <Route path="/form" component={Form} />
                <Route path="/example" component={Example} />
                <Route path="/index" component={Index} />
            </Switch>
        </Router>
    );
}

export default RouterIndex;